﻿{include file="public/header" /}
<title></title>
</head>

<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 账号管理 <span class="c-gray en">&gt;</span> OEM管理
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l">
		<a href="javascript:;" onclick="oem_add('添加OEM','{:url('oem_add')}','400','500')"  class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加OEM</a>
		</span>
		 </div>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr class="text-c">
				<th width="40">ID</th>
				<th>项目名</th>
				<th>用户名</th>
				<th>余额</th>
				<!--<th>佣金</th>-->
				<th>鼓励金</th>
				<th>认证</th>
				<th width="130">状态</th>
				<th width="130">增加时间</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="data" id="vo" empty="这里没有数据"}
			<tr class="text-c">
				<td>{$vo.id}</td>
				<td>
					{$vo.project_name}
				</td>
				<td>{$vo.mobile}</td>
				<td><a href="{:url('accounts/oemye',['oem_id'=>$vo.id,'type'=>1])}"><?php echo substr($vo['balance'],0,strlen($vo['balance'])-2)?></a></td>
				<!--<td><a href="{:url('accounts/oemyj',['oem_id'=>$vo.id,'type'=>1])}"><?php echo substr($vo['commission'],0,strlen($vo['commission'])-2)?></a></td>-->
				<td><a href="{:url('accounts/oemglj',['oem_id'=>$vo.id,'type'=>1])}">{$vo.score}</a></td>
				<td>					
					{switch name="$vo.is_verify"}
					    {case value="1"}<a href="{:url('accounts/renzhenginfo',['id'=>$vo.id])}" class="edit">已认证</a>{/case}
					    {case value="2"}<a href="{:url('accounts/renzhenginfo',['id'=>$vo.id])}" class="edit">待审核</a>{/case}
					    {case value="3"}<a href="{:url('accounts/renzhenginfo',['id'=>$vo.id])}" class="edit">已驳回</a>{{/case}
					    {default /}未认证
					{/switch}					
				</td>
				<td>
					{if $vo.status==1}
					正常
					{else /}
					冻结
					{/if}
				</td>
				<td>{$vo.add_time}</td>
				<td class="td-manage">
					<a  href="javascript:;" onclick="cz_glj({$vo.id})" class="ml-5" style="text-decoration:none">充值鼓励金</a>
					<a  href="javascript:;" onclick="oem_edit('修改OEM','{:url('accounts/oem_edit',['id'=>$vo.id])}','400','500')" class="ml-5" style="text-decoration:none">修改</a>
				</td>
			</tr>
			{/volist}
			</tbody>
			</table>
		</div>
		{include file="public/footer" /}
		<script type="text/javascript">
		/*管理员-增加*/
		function oem_add(title, url, w, h) {
			layer_show(title, url, w, h);
		}
		function cz_glj(id){
			layer_show("鼓励金充值","cz_glj?oem_id="+id,'400', '300');
		}
		/*管理员-增加*/
		function oem_edit(title, url, w, h) {
			layer_show(title, url, w, h);
		}
		</script>